package org.cholm.drtest.proxy;

public class WebImage {

	/** The URL */
	private String url = "";
	/** Width */
	private int width = 0;
	/** Height */
	private int height = 0;
	/**
	 * Constructor
	 *
	 * @param url URL
	 * @param w   Width
	 * @param h   Height
	 */
	public WebImage(String url, int w, int h)
	{
		this.url = url;
		this.width = w;
		this.height = h;
	}
	/**
	 * constructor
	 *
	 * @param url URL
	 *
	 */
	public WebImage(String url)
	{
		this.url = url;
	}
	/**
	 * ?
	 *
	 * @return ?
	 */
	public int describeContent() { return 0; }
	/** @return the height */
	public int getHeight() { return height; }
	/** @return the width */
	public int getWidth() { return width; }
	/** @return the URL */
	public String getUrl() { return url; }
	/** @return the hash of the URL */
	public int hashCode() { return url.hashCode(); }
	/** @return the URL */
	public String toString() { return url; }
}
// EOF
